package com.brian.demo.hessian.service.impl;

import com.brian.demo.hessian.bean.User;
import com.brian.demo.hessian.dao.IUserDao;
import com.brian.demo.hessian.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements IUserService {
	@Autowired
	private IUserDao userDao;
	
	public IUserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	public String addUser(User user) {
		return userDao.addUser(user);
	}

}
